package com.higgins.eventtracking.client.health.fundamentals;

import java.util.List;

import com.higgins.eventtracking.client.dto.DynamicTypeDTO;
import com.higgins.eventtracking.client.health.action.FuelTab;

public class GoalsSubTabFactory {
	public GoalsSubTabFactory()	{
		
	}
	public SubTab createSubTab(String dynamicType, String frameOfMind, List<DynamicTypeDTO> result)	{
		if (frameOfMind.equals("Body"))		{
			return 	new BodySubTab(dynamicType, frameOfMind, result);
		} else if (frameOfMind.equals("TimeTable") || frameOfMind.equals("Planning"))		{
			return new TimetableTab(false, 4);
		} else if (frameOfMind.equals("Fuel"))		{
			return new FuelTab();
		}
		return 	new GoalsSubTab(dynamicType, frameOfMind, result);
	}
}
